<template>
	<view>
		<view class="BackHeader">
			<view class="back" @tap="BackPage" v-if="isBack">
				<text class="iconfont icon-fanhui"></text>
			</view>
			<view class="cont">
				<slot name="Headercont"></slot>
			</view>
			<view class="right" :style="{width:rightwidth}">
				<slot name="Headerright"></slot>
			</view>	
		</view>
	</view>
</template>

<script>
	export default {
		name:"FatFatMeng-backHeader",
		data() {
			return {
				
			};
		},
		props: {
			isBack: {
				type: [Boolean, String],
				default: false
			},
			rightwidth: {
				type:String,
			}
		},
		methods: {
			BackPage() {
				uni.navigateBack({
					delta: 1
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.BackHeader {
		height: 90rpx;
		line-height: 90rpx;
		/* background: #111230; */
		/* color: #FFFFFF; */
		font-size: 36rpx;
		display: flex;
		flex-direction: row;
	}
	.cont,.back,.right {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.cont {
		flex: 1;
		font-size: 36rpx;
	}
	.back,.right {
		width: 90rpx;
		
	}
	.back>.iconfont {
		font-size: 36rpx;
		font-weight: 600;
	}
		

</style>
